<template>
  <div class="r-content">
    <iframe :src="src" frameborder="no" id="iframe" style="width: 100%;height: 100%" scrolling="auto"/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      src: "",
      fullscreen: true
    }
  },
  created() {
    this.src = this.$router.history.current.query.file + `&token=${this.$store.state.user.token}`
  },
  methods: {}
}
</script>

<style>
.r-content {
  height: calc(100vh - 90px);
}
</style>
